package com.bulletelc.apollopre.module.main.center.quotation.detail;

import com.bulletelc.apollopre.entity.OrderDataBean;
import com.bulletelc.apollopre.entity.QuotationBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * Created by Administrator on 2018/5/16.
 */

public interface QuotationDetailContract {

    interface View extends IView {
        void onSuccessQuotationDetail(QuotationBean quotationBean);
        void onErrorQuotationDetail(String error);
        void onFailQuotationDetail(String fail);

        void onSuccessCancel();
        void onErrorCancel(String error);
        void onFailCancel(String fail);

        void onSuccessSubmit(OrderDataBean orderDataBean);
        void onErrorSubmit(String error);
        void onFailSubmit(String fail);

        void onSuccessEdit();
        void onErrorEdit(String error);
        void onFailEdit(String fail);
    }

    interface Presenter extends IPresenter<View> {
        void getQuotationDetail(String id);
        void cancel(int state, int quotationId);
        void edit(int state, int quotationId);
        void submit(int quotationId);
    }
}
